
import 'package:flutter_demo/abstract-class.dart';

abstract class Processor {
  late num coreSize;
  arch(String name);
}

abstract class Camera {
  late String resolution;
  brand(String name);
}

class Oppo implements Processor, Camera {
  @override
  late num coreSize;

  @override
  late String resolution;

  @override
  arch(String name) {
    // TODO: implement arch
    print("the arch is ${name}");
  }

  @override
  brand(String name) {
    // TODO: implement brand
    print("the brand is ${name}");
  }

  Oppo(this.coreSize, this.resolution);
}

void main() {
  Oppo oppo = new Oppo(10, "1920*1080");
  oppo.arch("arm");
  oppo.brand("oppo");
}